extends StaticBody2D

func set_size(height:int):
	var cur_height = $Sprite2D.texture.get_height()
	var scale_y = height/cur_height
	$Sprite2D.scale.y = scale_y
	$CollisionShape2D.scale.y = scale_y
	position.y += height/2
	#$CollisionShape2D.position.y -= position.y
	print(scale_y)
	pass
